import Vue from 'vue'
import Router from 'vue-router'
import homepage from '../components/homepage/homepage'
import notice from '../components/notice/notice'
import attendance from '../components/attendance/attendance'
import payrequest from '../components/payrequest/payrequest'
import reimbursement from '../components/reimbursement/reimbursement'
import leave from '../components/leave/leave'
import outgoing from '../components/outgoing/outgoing'
import purchase from '../components/purchase/purchase'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/homepage'
    },
    {
      path: '/homepage',
      component: homepage
    },
    {
      path: '/notice',
      component: notice
    },
    {
      path: '/attendance',
      component: attendance
    },
    {
      path: '/payrequest',
      component: payrequest
    },
    {
      path: '/reimbursement',
      component: reimbursement
    },
    {
      path: '/leave',
      component: leave
    },
    {
      path: '/outgoing',
      component: outgoing
    },
    {
      path: '/purchase',
      component: purchase
    }
  ]
})
